// 1.导入{}中定义的变量
import {flag} from "./aaa.js";

if(flag) {
  console.log("我爱林青霞...");
}

// 2.直接导入export定义的变量
import {num, height} from "./aaa.js";
console.log(num);
console.log(height);

// 3.导入export定义的function
import {mul} from "./aaa.js";
console.log(mul(30, 50));

// 4.导入export定义的class
import {Person} from "./aaa.js";
const p = new Person();
p.run();

// 5.导入default
// import addr from "./aaa.js";
// console.log(addr);

import addr from "./aaa.js";
addr("我爱林青霞...");

// 6.统一全部导入
import * as t from "./aaa.js"
console.log(t.height);
console.log(t.flag);